import React from 'react';
import ReactDOM from 'react-dom/client';
import TodoList from './components/TodoList';
import { Provider } from 'react-redux'; // 1、Provider:提供器
import store from './store';

const App = (
  <Provider store={store}>
    <TodoList />
  </Provider>
)

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(App);